﻿// Javascript Dialogbox
 $(document).ready( function () {
    $("#dialog-confirm").dialog({
      autoOpen: false,
      modal: true,
      resizable: false,
      height:180,
    });

    $(".deleteLink").click(function(e) {
    e.preventDefault();
    var targetUrl = $(this).attr("href");

    $("#dialog-confirm").dialog({
        buttons : {
        "Confirm" : function() {
            window.location.href = targetUrl;
        },
        "Cancel" : function() {
            $(this).dialog("close");
        }
        }
    });

    $("#dialog-confirm").dialog("open");
    });

});   
//End DialogBox

//FadeOut Tempdata
$(document).ready(function()
{
   $('#tempdata').fadeOut(8000);      
});
//FadeOut

//DATIMEPICKER
$(function() {
		$( "#validitydate" ).datepicker({
			altField: "#alternate",
			altFormat: "DD, d MM, yy"
		});

        $("#eventend").datepicker({
            altField: "#alternate",
            altFormat: "DD, d MM, yy"
        })
});

//END DATETIMEPICKER
